<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
@include('include/common.inc.php');
@include('logincleck.php');	
$mem_id = $_SESSION['mem_id'];
$num = $_GET['num'];
$sel = "select * from $TBL_KEEP where mem_id='$mem_id' and hou_num='$num'";
$res = mysql_query($sel);
if($row = @mysql_fetch_array($res))
{
	MyNotice("收藏成功", 1,"");
	exit();
}
$time = date("Y-m-d H:i:s");
$add_cs = "insert into $TBL_KEEP (id,hou_num,mem_id,time) values (null,'$num','$mem_id','$time')";		
mysql_query($add_cs);
MyNotice("收藏成功", 1,"");
?>